package top.continew.admin.controller.business;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import top.continew.admin.system.model.entity.CourseCardUrlDO;
import top.continew.admin.system.service.CourseCardUrlService;

import java.util.List;

@Tag(name = "课程卡片 API")
@RestController
@RequestMapping("/courseCardImage")
public class CourseCardUrlController {


    @Autowired
    private CourseCardUrlService courseCardUrlService;

    @GetMapping
    @Operation(summary = "获取课程卡片列表", description = "获取课程卡片列表")
    public List<CourseCardUrlDO> getCourseCardImageList(@RequestParam(required = false) String title) {
        return courseCardUrlService.getCourseCardImageList(title);
    }

}
